Skip to content

Latest commit

 

History

History
 
 

Installation Mac

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Getting your machine ready for Xamarin developement

At Microsoft Build 2017, Microsoft unveiled the brand new Visual Studio for Mac-available now (see what's new here). To develop and deploy Xamarin apps to the platform of your choice, you now have two options available to you on Mac. Blow are instructions on how to get started on Xamarin Studio and Visual Studio for Mac.

NOTE: You only need to install one or the other. No need to install both.

Xamarin Studio - Installation on Mac

Welcome. This guide will assist users running Mac install Xamarin Studio Community with the tools nessecary for Xamarin. If you are on a Windows, follow the guide here

Prerequisites

  • Device running Mac (either OS X El Capitan (10.11) or macOS Sierra (10.12))
  • Latest version of Xcode

Install

  1. Download Xamarin Studio Community Installer from https://www.xamarin.com/download.

  1. Open the installer. You will be presented with a lot of options. For MSA right now, leave everything selected and click 'Continue'.

  1. Select where you like to install Xamarin and click 'Continue'.

  1. Click 'Install' and let it do its thing. This may take awhile depending on your internet connection. You may be prompted during the installation to enter your admin password so be ready for that.

Install Xcode

Xamarin Studio does not include the iOS simulator and will not deploy to an iOS device without first downloading and installing Xcode.

  1. Download Xcode through either the App Store and searching for 'Xcode' or by navigating to https://itunes.apple.com/nz/app/xcode/id497799835?mt=12

Create Project

  1. Open Xamarin Studio

  1. Select 'New Solution...'

  1. Under Multiplatform > App > Forms App and click 'Next'.

  1. Give your app a name. Make sure 'Android' and 'iOS' are checked. We want 'Use Protable Class Library' selected. 'Use XAML for user interface files should also be checked. Click 'Next' when you're done.

  1. Edit the project name and solution name to whatever you like or leave it as it is. If you want to change the location the project is saved to this is where you do it. Click 'Create' when you're done.

This will create a blank Xamarin project for you. Deploy it and check it out!

IMPORTANT STEP For Module One, you need to change the UI to display your name somewhere.

Visual Studio 2017 for Mac

Welcome. This guide will assist users running Mac install Visual Studio 2017 Community with the tools nessecary for Xamarin. If you are on a Windows, follow the guide here

Prerequisites

Supported Operating Systems Visual Studio 2017 for Mac will install and run on the following operating systems:
  • macOS Sierra 10.12: Community, Professional, and Enterprise.
  • Mac OS X El Capitan 10.11: Community, Professional, and Enterprise*.

*the latest version of Xcode 8.3 requires macOS Sierra 10.12, therefore Xamarin.iOS and Xamarin.Mac projects also require that minimum version

Hardware
  • 1.8 GHz or faster processor. Dual-core or better recommended.
  • 4 GB of RAM; 8 GB of RAM recommended (4 GB minimum if running on a virtual machine).
  • Hard disk space: approx 1GB.
Additional Requirements
  • .NET Core SDK 1.1 is required to use .NET Core projects and features. It can be downloaded and installed separately, and requires Mac OS X El Capitan 10.11 or higher.
  • Xamarin.Android requires the 64-bit Java Development Kit (JDK).
  • Xamarin.iOS requires Apple's Xcode IDE and iOS SDK.
  • Xamarin.Forms can target both Android and iOS platforms, given the requirements listed above.

Install

  1. Download Visual Studio 2017 Community Installer from https://www.visualstudio.com/vs/visual-studio-mac/.

  1. Open the installer. You will be presented with a lot of options. For MSA right now, leave everything selected and click 'Install'.

  1. Once Visual Studio has finished installing, click 'Start Visual Studio'.

Install Xcode

Just like Xamarin Studio, Visual Studio does not include the iOS simulator and you will not deploy to an iOS device without first downloading and installing Xcode.

  1. Download Xcode through either the App Store and searching for 'Xcode' or by navigating to https://itunes.apple.com/nz/app/xcode/id497799835?mt=12

Updating Visual Studtio

Once Visual Studio has finsihed installing and you've opened it up for the first time, you should see something like this.

  1. To update first click 'Visual Studio Community' -> 'Check for Updates...'

  1. You'll then see a popup window with various packages beginning to download. Leave it as it is until it has finished downloading. You may need to enter your password from time to time during the installation process. Once completed, Visual Studio will then restart. Check for updates again until there are no new updates left to download.

Create Project

  1. Click on 'New Project...'

  1. Select 'App' -> 'Blank Forms App'.

  1. Give your app a name, make sure you have 'Android' and 'iOS' enabled, you're using 'Portable Class Library' and 'Use XAML for user interface files' checked.

  1. Select where you want to save the project and leave everything else as it is. Click 'Create' when you're done.

  1. Now you're ready to begin developing your first Xamarin application!

Deploy It

It's now time to actually run your app! A screenshot of this is required for module one.